//HJ87 密码强度等级
//思路：顺着给定去写

#include <iostream>
#include <string>
using namespace std;

int main() 
{
    string s;
    cin >> s;
    int num = 0, cle = 0, sle = 0, ch = 0, rew = 0, len = s.size(), total = 0;
    //统计数据
    for(auto& c : s)
    {
        if('1' <= c && c <= '9')
            num++;
        else if('A' <= c && c <= 'Z')
            cle++;
        else if('a' <= c && c <= 'z')
            sle++;
        else
            ch++;
    }
    //长度得分
    if(len <= 4)
        total += 5;
    else if(len <= 7)
        total += 10;
    else
        total += 25;
    //字母得分
    if((cle != 0 && sle == 0) || (cle == 0 && sle != 0))
        total += 10;
    else if(cle != 0 && sle != 0)
        total += 20;
    //数字得分
    if(num == 1)
        total += 10;
    else if(num > 1)
        total += 20;
    //符号得分
    if(ch == 1)
        total += 10;
    else if(ch > 1)
        total += 25;
    //奖励分
    if(cle != 0 && sle != 0 && num != 0 && ch != 0)
        total += 5;
    else if(cle+sle != 0 && num != 0 && ch != 0)
        total += 3;
    else if(cle+sle != 0 && num != 0)
        total += 2;
    
    if(total >= 90)
        cout << "VERY_SECURE" << endl;
    else if(total >= 80)
        cout << "SECURE" << endl;
    else if(total >= 70)
        cout << "VERY_STRONG" << endl;
    else if(total >= 60)
        cout << "STRONG" << endl;
    else if(total >= 50)
        cout << "AVERAGE" << endl;
    else if(total >= 25)
        cout << "WEAK" << endl;
    else
        cout << "VERY_WEAK" << endl;

    return 0;
}
// 64 位输出请用 printf("%lld")